<?php if (!defined('SERVER_ROOT')) exit('No direct script access allowed');

class canbo_Controller extends Controller {
    function __construct(){
        parent::__construct('tracuu', 'canbo');
        $this->check_login();
        $this->view->template->menu_html =$this->CREATE_MENU();
        $this->view->template->nhacviec_html =$this->CREATE_NHAC_VIEC();
        $this->CHECK_QUYEN('tracuu', 'canbo');
    }

    function main(){
        (Session::get(TIEP_DAU_NGU_SESSION.'QUAN_TRI') == 1) Or die($this->access_denied());
        $this->dsp_all_canbo();
    }
    function dsp_all_canbo(){
        $VIEW_DATA['arr_all_canbo']= $this->model->SELECT_DANH_SACH_CAN_BO();
        $this->view->render('dsp_all_canbo', $VIEW_DATA);
    }
    function dsp_incanbo(){
        $VIEW_DATA['arr_all_canbo']= $this->model->SELECT_DANH_SACH_CAN_BO();
        $this->view->render('dsp_incanbo', $VIEW_DATA);
    }
}